# 定义装饰器
def outer(func):
    def inner():
        print("正在努力计算中")
        result = func()
        return result

    return inner


# 使用装饰器定义函数
# get_sum = outer(get_sum)
@outer
def get_sum():
    a = 10
    b = 20
    sum = a + b
    return sum


result = get_sum()
print(result)
